﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UsuariosAdm.aspx.cs" Inherits="Administracao_UsuariosAdm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentCenter" runat="Server">
    <div>
        <h2>
            Usuários Cadastrados
        </h2>
    </div>
    <div>
        <asp:Panel ID="frmReclamacoesUsuario" runat="server" Width="100%">
            <asp:GridView ID="grvUsuarios" runat="server" AutoGenerateColumns="False" DataKeyNames="usr_ds_nickname"
                OnRowDataBound="grvUsuarios_RowDataBound" AlternatingRowStyle-CssClass="grid-reclamacoes-alt-item"
                HeaderStyle-CssClass="grid-reclamacoes-header" RowStyle-CssClass="grid-reclamacoes-item"
                CssClass="grid-reclamacoes" Width="100%">
                <RowStyle CssClass="grid-reclamacoes-item" />
                <Columns>
                    <asp:BoundField DataField="usr_ds_nickname" HeaderText="Nickname" />
                    <asp:BoundField DataField="usr_nu_cpf" HeaderText="CPF" />
                    <asp:BoundField DataField="usr_ds_email" HeaderText="Email" />
                    <asp:BoundField DataField="usr_dt_data" HeaderText="Data de Cadastro" />
                    <asp:TemplateField>
                        <HeaderTemplate>
                            Grupo do usuário
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:DropDownList ID="ddlGrupoUsuario" runat="server" ToolTip="Grupo do usuário.">
                                <asp:ListItem Text="Usuário" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Moderador" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Administrador" Value="3"></asp:ListItem>
                            </asp:DropDownList>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:HyperLink ID="hlkExcluirUsuario" runat="server" Text="Excluir" ImageUrl="~/App_Themes/SomTheme/imagens/cross_icon.png"
                                ToolTip="Excluir Usuário" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    Nenhum usuário encontrado.</EmptyDataTemplate>
                <HeaderStyle CssClass="grid-reclamacoes-header" />
                <AlternatingRowStyle CssClass="grid-reclamacoes-alt-item" />
            </asp:GridView>
        </asp:Panel>
        <br class="spacer" />
        <hr />
        <div id="divControles">
            <asp:Button ID="btnSalvar" runat="server" OnClick="btnSalvar_Click" Text="Salvar"
                SkinID="btnControleSkin" />
            &nbsp;<asp:Button ID="btnCancelar" runat="server" CausesValidation="false" OnClick="btnCancelar_Click"
                Text="Cancelar" SkinID="btnControleSkin" />
        </div>
    </div>
</asp:Content>
